//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.neurosky.thinkgear;

public class HeartFitnessLevel {
    private String a;

    public HeartFitnessLevel() {
    }

    public String getHeartFitnessLevel(int var1, String var2, int var3) {
        if(!var2.equals("Male") && !var2.equals("Female")) {
            return "";
        } else {
            if(var1 >= 18 && var1 <= 25) {
                if(var2.equals("Male")) {
                    if(var3 <= 55) {
                        this.a = "Athlete";
                    } else if(var3 >= 56 && var3 <= 61) {
                        this.a = "Excelent";
                    } else if(var3 >= 62 && var3 <= 65) {
                        this.a = "Good";
                    } else if(var3 >= 66 && var3 <= 69) {
                        this.a = "Above Average";
                    } else if(var3 >= 70 && var3 <= 73) {
                        this.a = "Average";
                    } else if(var3 >= 74 && var3 <= 81) {
                        this.a = "Below Average";
                    } else {
                        this.a = "Poor";
                    }
                } else if(var3 <= 60) {
                    this.a = "Athlete";
                } else if(var3 >= 61 && var3 <= 65) {
                    this.a = "Excelent";
                } else if(var3 >= 66 && var3 <= 69) {
                    this.a = "Good";
                } else if(var3 >= 70 && var3 <= 73) {
                    this.a = "Above Average";
                } else if(var3 >= 74 && var3 <= 78) {
                    this.a = "Average";
                } else if(var3 >= 79 && var3 <= 84) {
                    this.a = "Below Average";
                } else {
                    this.a = "Poor";
                }
            } else if(var1 >= 26 && var1 <= 35) {
                if(var2.equals("Male")) {
                    if(var3 <= 54) {
                        this.a = "Athlete";
                    } else if(var3 >= 55 && var3 <= 61) {
                        this.a = "Excelent";
                    } else if(var3 >= 62 && var3 <= 65) {
                        this.a = "Good";
                    } else if(var3 >= 66 && var3 <= 70) {
                        this.a = "Above Average";
                    } else if(var3 >= 71 && var3 <= 74) {
                        this.a = "Average";
                    } else if(var3 >= 75 && var3 <= 81) {
                        this.a = "Below Average";
                    } else {
                        this.a = "Poor";
                    }
                } else if(var3 <= 59) {
                    this.a = "Athlete";
                } else if(var3 >= 60 && var3 <= 64) {
                    this.a = "Excelent";
                } else if(var3 >= 65 && var3 <= 68) {
                    this.a = "Good";
                } else if(var3 >= 69 && var3 <= 72) {
                    this.a = "Above Average";
                } else if(var3 >= 73 && var3 <= 76) {
                    this.a = "Average";
                } else if(var3 >= 77 && var3 <= 82) {
                    this.a = "Below Average";
                } else {
                    this.a = "Poor";
                }
            } else if(var1 >= 36 && var1 <= 45) {
                if(var2.equals("Male")) {
                    if(var3 <= 56) {
                        this.a = "Athlete";
                    } else if(var3 >= 57 && var3 <= 62) {
                        this.a = "Excelent";
                    } else if(var3 >= 63 && var3 <= 66) {
                        this.a = "Good";
                    } else if(var3 >= 67 && var3 <= 70) {
                        this.a = "Above Average";
                    } else if(var3 >= 71 && var3 <= 75) {
                        this.a = "Average";
                    } else if(var3 >= 76 && var3 <= 82) {
                        this.a = "Below Average";
                    } else {
                        this.a = "Poor";
                    }
                } else if(var3 <= 59) {
                    this.a = "Athlete";
                } else if(var3 >= 60 && var3 <= 64) {
                    this.a = "Excelent";
                } else if(var3 >= 65 && var3 <= 69) {
                    this.a = "Good";
                } else if(var3 >= 70 && var3 <= 73) {
                    this.a = "Above Average";
                } else if(var3 >= 74 && var3 <= 78) {
                    this.a = "Average";
                } else if(var3 >= 79 && var3 <= 84) {
                    this.a = "Below Average";
                } else {
                    this.a = "Poor";
                }
            } else if(var1 >= 46 && var1 <= 55) {
                if(var2.equals("Male")) {
                    if(var3 <= 57) {
                        this.a = "Athlete";
                    } else if(var3 >= 58 && var3 <= 63) {
                        this.a = "Excelent";
                    } else if(var3 >= 64 && var3 <= 67) {
                        this.a = "Good";
                    } else if(var3 >= 68 && var3 <= 71) {
                        this.a = "Above Average";
                    } else if(var3 >= 72 && var3 <= 76) {
                        this.a = "Average";
                    } else if(var3 >= 77 && var3 <= 83) {
                        this.a = "Below Average";
                    } else {
                        this.a = "Poor";
                    }
                } else if(var3 <= 60) {
                    this.a = "Athlete";
                } else if(var3 >= 61 && var3 <= 65) {
                    this.a = "Excelent";
                } else if(var3 >= 66 && var3 <= 69) {
                    this.a = "Good";
                } else if(var3 >= 70 && var3 <= 73) {
                    this.a = "Above Average";
                } else if(var3 >= 74 && var3 <= 77) {
                    this.a = "Average";
                } else if(var3 >= 78 && var3 <= 83) {
                    this.a = "Below Average";
                } else {
                    this.a = "Poor";
                }
            } else if(var1 >= 56 && var1 <= 65) {
                if(var2.equals("Male")) {
                    if(var3 <= 56) {
                        this.a = "Athlete";
                    } else if(var3 >= 57 && var3 <= 61) {
                        this.a = "Excelent";
                    } else if(var3 >= 62 && var3 <= 67) {
                        this.a = "Good";
                    } else if(var3 >= 68 && var3 <= 71) {
                        this.a = "Above Average";
                    } else if(var3 >= 72 && var3 <= 75) {
                        this.a = "Average";
                    } else if(var3 >= 76 && var3 <= 81) {
                        this.a = "Below Average";
                    } else {
                        this.a = "Poor";
                    }
                } else if(var3 <= 59) {
                    this.a = "Athlete";
                } else if(var3 >= 60 && var3 <= 64) {
                    this.a = "Excelent";
                } else if(var3 >= 65 && var3 <= 68) {
                    this.a = "Good";
                } else if(var3 >= 69 && var3 <= 73) {
                    this.a = "Above Average";
                } else if(var3 >= 74 && var3 <= 77) {
                    this.a = "Average";
                } else if(var3 >= 78 && var3 <= 83) {
                    this.a = "Below Average";
                } else {
                    this.a = "Poor";
                }
            } else if(var2.equals("Male")) {
                if(var3 <= 55) {
                    this.a = "Athlete";
                } else if(var3 >= 56 && var3 <= 61) {
                    this.a = "Excelent";
                } else if(var3 >= 62 && var3 <= 65) {
                    this.a = "Good";
                } else if(var3 >= 66 && var3 <= 69) {
                    this.a = "Above Average";
                } else if(var3 >= 70 && var3 <= 73) {
                    this.a = "Average";
                } else if(var3 >= 74 && var3 <= 79) {
                    this.a = "Below Average";
                } else {
                    this.a = "Poor";
                }
            } else if(var3 <= 59) {
                this.a = "Athlete";
            } else if(var3 >= 60 && var3 <= 64) {
                this.a = "Excelent";
            } else if(var3 >= 65 && var3 <= 68) {
                this.a = "Good";
            } else if(var3 >= 69 && var3 <= 72) {
                this.a = "Above Average";
            } else if(var3 >= 73 && var3 <= 76) {
                this.a = "Average";
            } else if(var3 >= 77 && var3 <= 84) {
                this.a = "Below Average";
            } else {
                this.a = "Poor";
            }

            return this.a;
        }
    }
}
